<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html">

    <h:head>

        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

        <h:outputStylesheet name="./css/default.css"/>
        <h:outputStylesheet name="./css/cssLayout.css"/>
        <h:outputStylesheet name="./css/login.css"/>

        <link rel="icon" href="../../resources/images/login.png" />
        <link rel="shortcut icon" href="../../resources/images/login.png" type="image/x-icon" />

        <title>
            <ui:insert name="title">Template Login</ui:insert>
        </title>

        <script type="text/javascript">
            function handleLoginRequest(xhr, status, args) {
                if (args.validationFailed || !args.loggedIn) {
                    dialogLogin.jq.effect("shake", {times: 5}, 100);
                }
                else {
                    location.href = args.raiz;
                }
            }
            function setCodFuncaoVisitante(codigo) {
                document.getElementById('formRegistrarUsuario:codVisitante').value = codigo;
            }
            function setEstadoVisitante(estado) {
                document.getElementById('formRegistrarUsuario:estadoVisitante').value = estado;
            }
        </script>

    </h:head>

    <h:body>

        <div id="conteiner">

            <div id="top" class="ui-widget-header ui-corner-all">
                <ui:insert name="top">Topo </ui:insert>
            </div>

            <div id="menu"/>

            <div id="content" class="center_content ui-widget-content ui-corner-all">
                <ui:insert name="content">Conteúdo</ui:insert>
            </div>

            <div id="bottom" class="ui-widget-header ui-corner-all">
                <ui:insert name="bottom">Sistema JSF Versão Alpha &copy; 2014</ui:insert>
            </div>

        </div>

    </h:body>

</html>